<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/daoConfig.php';
/**
 * supplier_services_supplierEditService
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */

class supplier_services_supplierEditService{

    private $objDaoFactory;

    public function __construct(){
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    /**
     * 供应商情报取得
     * pbGetSupplierInfo
     * @param   string  $strSupplierNo
     * @return  array   $arrReturn
     */
    public function pbGetSupplierInfo($strSupplierNo){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $arrReturn = $objTestDao->pbGetSupplierInfo($strSupplierNo);
        return $arrReturn;
    }

    /**
     * 供应商情报新规保存
     * pbGetSupplierData
     * @param   array   $arrParam
     * @return  string  $strReturn
     */
    public function pbInsertSupplierInfo($arrParam){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $strReturn = $objTestDao->pbInsertSupplierInfo($arrParam);
        return $strReturn;
    }

    /**
     * 供应商情报编辑保存
     * pbGetSupplierInfo
     * @param   array   $arrParam
     * @return  string  $strReturn
     */
    public function pbUpdateSupplierInfo($arrParam){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $strReturn = $objTestDao->pbUpdateSupplierInfo($arrParam);
        return $strReturn;
    }

    /**
     * 供应商情报删除
     * pbGetSupplierInfo
     * @param   array   $arrParam
     * @return  string  $strReturn
     */
    public function pbDeletetSupplierInfo($arrParam){
        $objTestDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SUPPLIER_DAO);
        $strReturn = $objTestDao->pbDeletetSupplierInfo($arrParam);
        return $strReturn;
    }
}